package com.itboye.jmsfhz.app.logincontroller;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;

import com.itboye.app.mian.activity.ActivityGeRenData;
import com.itboye.app.mian.activity.MeShouDaoActivity;
import com.itboye.jmsfhz.data.presenter.Projectpresenter;
import com.itboye.jmsfhz.main.EmploymentFragment;

/***
 * 
 * @author 在登录状态下执行该方法
 * 
 */
public class LoginedState implements ILoginState {

	Projectpresenter projectpresenter;

	String uid;
	String id;
	// 状态为登录的时候执行本类里的方法
	@Override
	public void test(Activity activity, Object obj) {
		// TODO Auto-generated method stub

	}

	@Override
	public void goToMyMessage(Activity activity, Object obj) {
		// TODO Auto-generated method stub
		Intent intent = new Intent(activity, ActivityGeRenData.class);
		activity.startActivityForResult(intent, 101);
	}

	@Override
	public void getTouBiao() {
		// TODO Auto-generated method stub
		projectpresenter.getProject(uid, id);
	}

	@Override
	public void getSHouDao(Activity activity, Object obj) {
		// TODO Auto-generated method stub
		Intent intent2 = new Intent(activity, MeShouDaoActivity.class);
		activity.startActivity(intent2);
	}

	@SuppressLint("NewApi") @Override
	public void getFragemntEm(Activity activity) {
		// TODO Auto-generated method stub
		EmploymentFragment fragment=new EmploymentFragment();
	}
	
	



}
